package com.zc.designmodel.behavioral.iterator;

/**
 * @author: zhuCan
 * @date: 2020/4/15 17:08
 * @description:
 */
public class Test {

  public static void main(String[] args) {
    NameRepository repository = new NameRepository();

    Iterator iterator = repository.iterator();
    while (iterator.hasNext()){
      System.out.println(iterator.next());
    }
  }
}
